package top.jolyoulu.codegenweb.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @Author: JolyouLu
 * @Date: 2023/4/9 20:43
 * @Description
 */
@Component
@ConfigurationProperties(prefix = "template")
@PropertySource(value = "classpath:codegen-web.yml")
public class TemplateConfig {

    private String directory;

    public String getDirectory() {
        return directory;
    }

    @Value("${directory}")
    public void setDirectory(String directory) {
        this.directory = directory;
    }
}
